# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from service import videoControl

# Create your views here.


def video(request, *args, **kwargs):
	context = {}
	# print kwargs
	current_url = request.path  # 该视图所映射的url，即当前url
	# print current_url
	context['current_url'] = current_url

	derction_queryset = videoControl.get_derction(request)
	context['derction_queryset'] = derction_queryset

	classification_queryset = videoControl.get_classification(request)
	context['classification_queryset'] = classification_queryset

	level_list = videoControl.get_level(request)
	context['level_list'] = level_list

	return render(request, 'video.html', context=context)
